From 05480bb8bec1c43cf2ff6447bb34d8d901d1ebb8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2008 21:23:19 +0000 Subject: 2008-07-17 Joel Sherrill * psxfile01/test.c: truncate on /dev/console now works. --- testsuites/psxtests/psxfile01/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/psxtests/psxfile01/test.c') diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index 6ab6366210..cae6a4b03d 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -481,7 +481,7 @@ int main( /* try to truncate the console and see what happens */ status = truncate( "/dev/console", 40 ); - assert(status == -1 ); + assert( status == 0 ); puts( "truncate /tmp/j to length of 0" ); status = truncate( "/tmp/j", 0 ); -- cgit v1.2.3