Skip to content

Commit 60b1a0d

Browse files
authored
Merge pull request #38971 from al45tair/problem/82139957
[Test] Minor fixes to objc-getclass demangler test
2 parents 491361a + 0cd79c5 commit 60b1a0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Demangle/objc-getclass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-clang %s -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -lswiftCore -o %t/objc-getclass
2+
// RUN: %target-clang %s -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -lswiftCore -lobjc -o %t/objc-getclass
33
// RUN: %target-codesign %t/objc-getclass
44
// RUN: %target-run %t/objc-getclass %S/Inputs/objc-getclass.txt
55

@@ -34,8 +34,8 @@ int main(int argc, char **argv) {
3434
objc_setHook_getClass(dummyHook, &getObjCClassByMangledName);
3535
objc_setHook_getClass(getObjCClassByMangledName, &dummy);
3636
} else {
37-
fprintf(stderr, "objc-getclass: macOS version is too old\n");
38-
return 1;
37+
fprintf(stderr, "objc-getclass: OS version is too old\n");
38+
return 0;
3939
}
4040

4141
// Open the input file

0 commit comments

Comments
 (0)