-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: ignore the copied entry_point.c #48297
Conversation
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
|
Do you know why it's copied instead of being referenced directly like in all other tests? |
I don't know. The test was created like this. cc: @gabrielschulhof |
@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:
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. |
Landed in d15652e |
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>
Add
test_cannot_run_js/entry_point.c
totest/js-native-api/.gitignore
.