mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add test case for require-time libc++ segfault
This commit is contained in:
@@ -16,7 +16,7 @@ describe('Gamma correction', function() {
|
||||
assert.strictEqual('jpeg', info.format);
|
||||
assert.strictEqual(129, info.width);
|
||||
assert.strictEqual(111, info.height);
|
||||
fixtures.assertSimilar(fixtures.expected('gamma-0.0.jpg'), data, done);
|
||||
fixtures.assertSimilar(fixtures.expected('gamma-0.0.jpg'), data, {threshold: 12}, done);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
15
test/unit/require.js
Normal file
15
test/unit/require.js
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
describe('Require-time checks', function() {
|
||||
|
||||
/*
|
||||
Including sharp alongside another C++ module that does not require
|
||||
-stdlib=libc++ (for its C++11 features) has caused clang/llvm to
|
||||
segfault due to the use of static function variables.
|
||||
*/
|
||||
it('Require alongside C++ module that does not use libc++', function() {
|
||||
var bufferutil = require('bufferutil');
|
||||
var sharp = require('../../index');
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user