Differences From Artifact [0f4331146f]:
- File
tests/OFPlugin/OFPlugin.m
— part of check-in
[179174571e]
at
2009-04-19 17:06:46
on branch trunk
— Don't use forwarding for OFPlugin.
This is faster and we don't rely on forwarding which is broken in
both, the GNU and the Apple runtime. Eventually, there will be an
implementation for forwarding that does work around the runtime bugs,
but still, an implementation of OFPlugin without forwarding makes more
sense. (user: js, size: 497) [annotate] [blame] [check-ins using]
To Artifact [4ca81ff021]:
- File tests/OFPlugin/OFPlugin.m — part of check-in [16f1025d5c] at 2009-04-20 01:55:07 on branch trunk — Improve tests. (user: js, size: 651) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "config.h" #import "OFPlugin.h" #import "TestPlugin/TestPlugin.h" int main() { TestPlugin *plugin; plugin = [OFPlugin pluginFromFile: "TestPlugin/TestPlugin"]; | > > | > > | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "config.h" #include <stdio.h> #import "OFPlugin.h" #import "TestPlugin/TestPlugin.h" int main() { TestPlugin *plugin; plugin = [OFPlugin pluginFromFile: "TestPlugin/TestPlugin"]; if ([plugin test: 1234] != 2468) { puts("\033[K\033[1;31mTest 1/1 failed!\033[m"); return 1; } puts("\033[1;32mTests successful: 1/1\033[0m"); return 0; } |