Respect test function when performing local drag-and-drop

* lisp/x-dnd.el (x-dnd-test-function): Fix doc string to
describe what is actually accepted.
(x-dnd-known-types, x-dnd-targets-list): Fix coding style.
(x-dnd-handle-native-drop): New function.

* src/xselect.c (x_atom_to_symbol): Export.

* src/xterm.c (x_dnd_note_self_drop): Call new variable to
determine what action to return.
(x_clear_dnd_action): New function.
(x_dnd_begin_drag_and_drop): Respect new variable.
(syms_of_xterm): New defvar `x-dnd-native-test-function'.
* src/xterm.h: Update prototypes.
10 jobs for master in 368 minutes and 26 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Build Images
failed #47345
build-image-inotify

02:25:22

 
  Normal
skipped #47346
test-all-inotify
 
  Platform Images
failed #47347
build-image-filenotify-gio

02:29:00

failed #47348
build-image-gnustep

01:06:20

 
  Platforms
skipped #47349
test-filenotify-gio
skipped #47350
test-gnustep
 
  Native Comp Images
passed #47351
build-native-comp-speed0

06:07:57

failed #47352
build-native-comp-speed1

04:06:34

passed #47353
build-native-comp-speed2

01:10:39

 
  Native Comp
failed #47354
test-native-comp-speed0

00:00:27

 
Name Stage Failure
failed
test-native-comp-speed0 Native Comp There has been a runner system failure, please try again
Pulling docker image docker:19.03.12 ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Get https://registry-1.docker.io/v2/library/docker/manifests/19.03.12: received unexpected HTTP status: 500 Internal Server Error (manager.go:205:0s)
ERROR: Preparation failed: failed to pull image "docker:19.03.12" with specified policies [always]: Error response from daemon: Get https://registry-1.docker.io/v2/library/docker/manifests/19.03.12: received unexpected HTTP status: 500 Internal Server Error (manager.go:205:0s)
Will be retried in 3s ...
Using Docker executor with image docker:19.03.12 ...

Pulling docker image docker:19.03.12 ...

WARNING: Failed to pull image with policy "always": Error response from daemon: Get https://registry-1.docker.io/v2/library/docker/manifests/19.03.12: received unexpected HTTP status: 500 Internal Server Error (manager.go:205:0s)
ERROR: Preparation failed: failed to pull image "docker:19.03.12" with specified policies [always]: Error response from daemon: Get https://registry-1.docker.io/v2/library/docker/manifests/19.03.12: received unexpected HTTP status: 500 Internal Server Error (manager.go:205:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): failed to pull image "docker:19.03.12" with specified policies [always]: Error response from daemon: Get https://registry-1.docker.io/v2/library/docker/manifests/19.03.12: received unexpected HTTP status: 500 Internal Server Error (manager.go:205:0s)
failed
build-native-comp-speed1 Native Comp Images
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after_script
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-native-comp-speed1-a1a435b3: No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
build-image-filenotify-gio Platform Images
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after_script
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-filenotify-gio-a1a435b3: No such file or directory
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
build-image-inotify Build Images
8505a11cc721: Retrying in 2 seconds
8505a11cc721: Retrying in 1 second
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-inotify-a1a435b3: No such file or directory
ERROR: Job failed: exit code 1
failed
build-image-gnustep Platform Images
d222d16e84f7: Retrying in 1 second
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Running after_script
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-gnustep-a1a435b3: No such file or directory
Cleaning up file based variables
ERROR: Job failed: exit code 1