diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-24 03:49:32 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-24 03:49:32 +0530 |
commit | ae935b12e04443893404341501b1c7d002c25b9e (patch) | |
tree | bc25a15b8ef0a0f1982e5f1f342208c958fd9d54 /test cases | |
parent | bfd190279ca6e8d08917dde0ff22ba33f6162e45 (diff) | |
download | meson-ae935b12e04443893404341501b1c7d002c25b9e.zip meson-ae935b12e04443893404341501b1c7d002c25b9e.tar.gz meson-ae935b12e04443893404341501b1c7d002c25b9e.tar.bz2 |
Fix single object extraction test
The library from which we extract should have multiple sources
from which we choose a strict subset otherwise we're testing almost the
same case extracting all the objects.
This exposes a bug in how we were doing extract checking for unity
builds.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/25 object extraction/lib2.c | 3 | ||||
-rw-r--r-- | test cases/common/25 object extraction/meson.build | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test cases/common/25 object extraction/lib2.c b/test cases/common/25 object extraction/lib2.c new file mode 100644 index 0000000..c30dde2 --- /dev/null +++ b/test cases/common/25 object extraction/lib2.c @@ -0,0 +1,3 @@ +int retval() { + return 43; +} diff --git a/test cases/common/25 object extraction/meson.build b/test cases/common/25 object extraction/meson.build index 7c5ab90..c76b0db 100644 --- a/test cases/common/25 object extraction/meson.build +++ b/test cases/common/25 object extraction/meson.build @@ -4,7 +4,7 @@ if meson.is_unity() message('Skipping extraction test because this is a Unity build.') else lib1 = shared_library('somelib', 'src/lib.c') - lib2 = shared_library('somelib2', 'lib.c') + lib2 = shared_library('somelib2', 'lib.c', 'lib2.c') obj1 = lib1.extract_objects('src/lib.c') obj2 = lib2.extract_objects(['lib.c']) |