/* Note that OUTDIR is defined by the test suite. */
#define FILENAME "foo.fileio.test"
#define RENAMED "bar.fileio.test"
-#define NONEXISTANT "nofoo.fileio.test"
+#define NONEXISTENT "nofoo.fileio.test"
#define NOWRITE "nowrt.fileio.test"
#define TESTDIR1 "dir1.fileio.test"
#define TESTDIR2 "dir2.fileio.test"
stop ();
/* Opening nonexistant file */
errno = 0;
- ret = open (NONEXISTANT, O_RDONLY);
+ ret = open (NONEXISTENT, O_RDONLY);
printf ("open 4: ret = %d, errno = %d %s\n", ret, errno,
strerrno (errno));
if (ret >= 0)
printf ("stat 3: ret = %d, errno = %d %s\n", ret, errno,
strerrno (errno));
stop ();
- /* Nonexistant file */
+ /* Nonexistent file */
errno = 0;
- ret = stat (NONEXISTANT, &st);
+ ret = stat (NONEXISTENT, &st);
printf ("stat 4: ret = %d, errno = %d %s\n", ret, errno,
strerrno (errno));
stop ();
stop ();
/* oldpath does not exist */
errno = 0;
- ret = rename (OUTDIR NONEXISTANT, OUTDIR FILENAME);
+ ret = rename (OUTDIR NONEXISTENT, OUTDIR FILENAME);
printf ("rename 5: ret = %d, errno = %d %s\n", ret, errno,
strerrno (errno));
stop ();
stop ();
/* pathname doesn't exist */
errno = 0;
- ret = unlink (OUTDIR NONEXISTANT);
+ ret = unlink (OUTDIR NONEXISTENT);
printf ("unlink 3: ret = %d, errno = %d %s\n", ret, errno,
strerrno (errno));
stop ();
gdb_test_multiple "explore struct SimpleStruct" "" {
-re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
pass "explore struct SimpleStruct"
- gdb_test_multiple "0" "explore type struct SimpleStruct feild 0" {
+ gdb_test_multiple "0" "explore type struct SimpleStruct field 0" {
-re ".*[child_scalar_type_description {field 'a' of 'struct SimpleStruct'} {int}].*" {
- pass "explore type struct SimpleStruct feild 0"
+ pass "explore type struct SimpleStruct field 0"
gdb_test_multiple "\0" "return to struct SimpleStruct from field 0" {
-re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
pass "return to struct SimpleStruct from field 0"
}
}
}
- gdb_test_multiple "1" "explore type struct SimpleStruct feild 1" {
+ gdb_test_multiple "1" "explore type struct SimpleStruct field 1" {
-re ".*[child_scalar_type_description {field 'd' of 'struct SimpleStruct'} {double}].*" {
- pass "explore type struct SimpleStruct feild 1"
+ pass "explore type struct SimpleStruct field 1"
gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
-re ".*[compound_type_description $SS {struct/class}].*$SS_fields_types.*" {
pass "return to struct SimpleStruct from field 1"
gdb_test_multiple "explore union SimpleUnion" "" {
-re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
pass "explore union SimpleUnion"
- gdb_test_multiple "0" "explore type union SimpleUnion feild 0" {
+ gdb_test_multiple "0" "explore type union SimpleUnion field 0" {
-re ".*[child_scalar_type_description {field 'i' of 'union SimpleUnion'} {int}].*" {
- pass "explore type union SimpleUnion feild 0"
+ pass "explore type union SimpleUnion field 0"
gdb_test_multiple "\0" "return to union SimpleUnion from field 0" {
-re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
pass "return to union SimpleUnion from field 0"
}
}
}
- gdb_test_multiple "1" "explore type union SimpleUnion feild 1" {
+ gdb_test_multiple "1" "explore type union SimpleUnion field 1" {
-re ".*[child_scalar_type_description {field 'c' of 'union SimpleUnion'} {char}].*" {
- pass "explore type union SimpleUnion feild 1"
+ pass "explore type union SimpleUnion field 1"
gdb_test_multiple "\0" "return to union SimpleUnion from field 1" {
-re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
pass "return to union SimpleUnion from field 1"
}
}
}
- gdb_test_multiple "2" "explore type union SimpleUnion feild 2" {
+ gdb_test_multiple "2" "explore type union SimpleUnion field 2" {
-re ".*[child_scalar_type_description {field 'f' of 'union SimpleUnion'} {float}].*" {
- pass "explore type union SimpleUnion feild 2"
+ pass "explore type union SimpleUnion field 2"
gdb_test_multiple "\0" "return to union SimpleUnion from field 2" {
-re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
pass "return to union SimpleUnion from field 2"
}
}
}
- gdb_test_multiple "3" "explore type union SimpleUnion feild 3" {
+ gdb_test_multiple "3" "explore type union SimpleUnion field 3" {
-re ".*[child_scalar_type_description {field 'd' of 'union SimpleUnion'} {double}].*" {
- pass "explore type union SimpleUnion feild 3"
+ pass "explore type union SimpleUnion field 3"
gdb_test_multiple "\0" "return to union SimpleUnion from field 3" {
-re ".*[compound_type_description $SU {union}].*$SU_fields_types.*" {
pass "return to union SimpleUnion from field 3"
gdb_test_multiple "explore SS" "" {
-re ".*[typedef_type_description {SS} $SS].*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
pass "explore SS"
- gdb_test_multiple "0" "explore type SS feild 0" {
+ gdb_test_multiple "0" "explore type SS field 0" {
-re ".*[child_scalar_type_description {field 'a' of 'SS'} {int}].*" {
- pass "explore type SS feild 0"
+ pass "explore type SS field 0"
gdb_test_multiple "\0" "return to SS from field 0" {
-re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
pass "return to SS from field 0"
}
}
}
- gdb_test_multiple "1" "explore type SS feild 1" {
+ gdb_test_multiple "1" "explore type SS field 1" {
-re ".*[child_scalar_type_description {field 'd' of 'SS'} {double}].*" {
- pass "explore type SS feild 1"
+ pass "explore type SS field 1"
gdb_test_multiple "\0" "return to struct SimpleStruct from field 1" {
-re ".*[compound_type_description {SS} {struct/class}].*$SS_fields_types.*" {
pass "return to SS field 1"