| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add `test_cannot_run_js/entry_point.c` to `test/js-native-api/.gitignore`.
|
See node/test/js-native-api/test_cannot_run_js/binding.gyp Lines 3 to 12 in 66f112d |
Sorry, something went wrong.
|
Do you know why it's copied instead of being referenced directly like in all other tests? |
Sorry, something went wrong.
|
I don't know. The test was created like this. cc: @gabrielschulhof |
Sorry, something went wrong.
|
@lpinca @targos somehow, having multiple targets in gyp that refer to a path above the root causes test failures. For example, when I tried to write the binding.gyp file as {
"target_defaults": {
"sources": [
"../entry_point.c",
]
},
"targets": [
{
"target_name": "test_cannot_run_js",
"sources": [ "test_cannot_run_js.c" ],
"defines": [ "NAPI_EXPERIMENTAL" ],
},
{
"target_name": "test_pending_exception",
"sources": [ "test_cannot_run_js.c" ],
"defines": [ "NAPI_VERSION=8" ],
}
]I got this failure on https://ci.nodejs.org/job/node-test-commit-osx/52335/nodes=osx11-x64/console and a bunch of other platforms: 08:12:41 rm: ./Release/.deps/Release/obj.target/test_cannot_run_js/../entry_point.o.d.raw: No such file or directory I tried referring to "../entry_point.c" from each target, and that failed too. In the end, I had no choice but use this convoluted copy-the-file approach. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Add `test_cannot_run_js/entry_point.c` to `test/js-native-api/.gitignore`. PR-URL: #48297 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
Add `test_cannot_run_js/entry_point.c` to `test/js-native-api/.gitignore`. PR-URL: nodejs#48297 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
Add `test_cannot_run_js/entry_point.c` to `test/js-native-api/.gitignore`. PR-URL: nodejs#48297 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
Add `test_cannot_run_js/entry_point.c` to `test/js-native-api/.gitignore`. PR-URL: #48297 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Add test_cannot_run_js/entry_point.c to
test/js-native-api/.gitignore.