diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/strings')
-rw-r--r-- | testsuites/psxtests/psxhdrs/strings/bcopy.c | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/strings/index.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/strings/rindex.c | 6 |
3 files changed, 3 insertions, 14 deletions
diff --git a/testsuites/psxtests/psxhdrs/strings/bcopy.c b/testsuites/psxtests/psxhdrs/strings/bcopy.c index 8f7f31db98..26cca2f479 100644 --- a/testsuites/psxtests/psxhdrs/strings/bcopy.c +++ b/testsuites/psxtests/psxhdrs/strings/bcopy.c @@ -38,15 +38,12 @@ int test( void ); -int result = 1; - int test( void ) { auto char buffer[50]; bcopy( "Hello ", buffer, 6 ); bcopy( "world", &buffer[6], 6 ); - result = 0; - return result; + return 0; } diff --git a/testsuites/psxtests/psxhdrs/strings/index.c b/testsuites/psxtests/psxhdrs/strings/index.c index 557a97760c..ea8ebf024d 100644 --- a/testsuites/psxtests/psxhdrs/strings/index.c +++ b/testsuites/psxtests/psxhdrs/strings/index.c @@ -38,16 +38,12 @@ int test( void ); -int result = 1; - int test( void ) { char *p; char *string = "This is a string for testing"; p = index( string, 'i' ); - (void) p; - result = 0; - return result; + return ( p != NULL ); } diff --git a/testsuites/psxtests/psxhdrs/strings/rindex.c b/testsuites/psxtests/psxhdrs/strings/rindex.c index e8e53940ef..aea3efb0ae 100644 --- a/testsuites/psxtests/psxhdrs/strings/rindex.c +++ b/testsuites/psxtests/psxhdrs/strings/rindex.c @@ -38,16 +38,12 @@ int test( void ); -int result = 1; - int test( void ) { char *p; char *string = "This is a string for testing"; p = rindex( string, 'i' ); - (void) p; - result = 0; - return result; + return ( p != NULL ); } |